package org.example.erpapiservicespringmongoimpl.mapper;

import org.example.erpapicommon.model.TOrderDetail;
import org.example.erpapiservicespringmongoimpl.doc.OrderDetailDoc;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring",uses={ProductMapper.class})
public interface OrderDetailMapper {
    TOrderDetail toTOrderDetail(OrderDetailDoc orderDetail);
    List<TOrderDetail> toTOrderDetailList(List<OrderDetailDoc> orderDetailDocList);
}
